package com.quectel.core.module.car.dto;

import com.quectel.core.module.village.dto.VillageRoomDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 车辆
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2021-11-09 14:20:06
 */
@Data
@Schema
public class CarDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     * 租户
     */
    @Schema(description = "租户")
    private Long tenantId;

    /**
     * 小区
     */
    @Schema(description = "小区")
    @NotNull
    private Long villageId;

    /**
     * 车牌号
     */
    @Schema(description = "车牌号")
    @NotEmpty
    @Length(min = 1, max = 50)
    private String license;

    /**
     * 车牌颜色 车牌颜色 1蓝底白字 2黄底黑字 3白底黑字 4绿底黑字 5黑底白字 6 02式车牌 7粤Z车牌 8FV车牌 9其他
     */
    @NotNull
    private Byte licenseColor;

    /**
     * 车辆类型1住户车辆2租户车辆3访客车辆4服务车辆5其他
     */
    @Schema(description = "车辆类型1住户车辆2租户车辆3访客车辆4服务车辆5其他")
    @NotNull
    private Byte carType;

    /**
     * 拥有人姓名
     */
    @Schema(description = "拥有人姓名")
    @NotEmpty
    @Length(min = 1, max = 50)
    private String ownerName;

    /**
     * 拥有人手机号
     */
    @Schema(description = "拥有人手机号")
    @NotEmpty
    @Length(min = 1, max = 50)
    private String ownerMobile;

    @Schema(description = "车主所属房屋")
    private Long roomId;

    /**
     * 发动机号EIN（engine number）
     */
    @Schema(description = "发动机号EIN（engine number）")
    private String engineNo;

    /**
     * 车架号VIN（vehicle identification number）
     */
    @Schema(description = "车架号VIN（vehicle identification number）")
    private String vehicleIdNo;

    /**
     * 车辆正面照
     */
    @Schema(description = "车辆正面照")
    private String frontViewPictures;

    /**
     * 行驶证照片
     */
    @Schema(description = "行驶证照片")
    private String vehicleLicensePictures;

    /**
     * 品牌型号
     */
    @Schema(description = "品牌型号")
    private String brandModel;
    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    private String villageName;
    private VillageRoomDto room;
    /************非数据库字段 end **************/
}
